<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%--<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#${serviceKey}_service_api_table')}">
        <fieldset>
            <legend style="font-weight:normal;">搜索：</legend>
            <div style="margin:0; padding:1px 5px 5px;">
                <span>搜索：</span>
                <input type="text" name="search" class="form-control" size="5">

                <div class="btn-group">
                    <button type="submit" class="btn-green" data-icon="search">搜索</button>
                    <button type="reset" class="btn-orange" data-icon="times">重置</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>--%>
<div class="bjui-pageContent">
</div>
<table id="${serviceKey}_service_api_table" class="table table-bordered">
</table>

<script type="text/javascript">
    var serviceKey = '${serviceKey}';
    $(function () {
        var table_cl = $('#' + serviceKey + '_service_api_table').datagrid({
            height: '100%',
            width:'100%',
            fullGrid:true,
            gridTitle: serviceKey + '微服务',
            showToolbar: false,
            filterThead: true,
            delPK: 'id',
            dataUrl: '/admin/micro/service/getServiceApi/' + serviceKey,
            local: "local",
            inlineEditMult: false,
            saveAll: false,
            addLocation: 'last',
            delConfirm: true,
            columns: [
                {
                    name: 'key',
                    label: '标识',
                    align: 'center'
                }, {
                    name: 'url',
                    label: '配置值',
                    align: 'center',
                    rule: 'required'
                }, {
                    name: 'dataType',
                    label: '返回类型',
                    align: 'center',
                    rule: 'required'
                }, {
                    name: 'remark',
                    label: '说明',
                    align: 'center'
                }
            ],
            paging: {pageSize: 20, pageIndex: 1},
            linenumberAll: true
        });

    });
</script>